package com.example.rpc;

import java.util.concurrent.ConcurrentHashMap;

public class Dispatcher {

    private static ConcurrentHashMap<String, Object> mapping = new ConcurrentHashMap<>();

    public static void register(String k, Object impl) {
        mapping.put(k, impl);
    }

    public static Object get(String k) {
        return mapping.get(k);
    }

}
